package org.hxyjs.dto;



/**
 * 消息的枚举 就是把所有的消息可能都列出来的
 */
//查询全部学生为例  查询成功   查询失败  当前没有数据
public enum MessageEnum {
    GETEXPERTSUCCESS(200,Messages.GETEXPERTSUCCESS),
    GETEXPERTFAIL(4001,Messages.GETEXPERTFAIL),
    ADDEXPERTSUCCESS(200,Messages.ADDEXPERTSUCCESS),
    ADDEXPERTFAIL(4001,Messages.ADDEXPERTFAIL),
    DELETEEXPRETSUCCESS(200,Messages.DELETEEXPERTSUCCESS),
    DELETEEXPERTFAIL(4001,Messages.DELETEEXPERTFAIL),
    UPDATEEXPERTSUCCESS(200,Messages.UPDATEEXPERTSUCCESS),
    UPDATEEXPERTFAIL(4001,Messages.UPDATEEXPERTFAIL),


    GETPROGRAMMEALLSUCCESS(200,Messages.GETPROGRAMMEALLSUCCESS),
    GETPROGRAMMEALLFAIL(4001,Messages.GETPROGRAMMEALLFAIL),
    GETPROGRAMMESUCCESS(200,Messages.GETPROGRAMMESUCCESS),
    GETPROGRAMMEFAIL(4001,Messages.GETPROGRAMMEFAIL),
    ADDPROGRAMMESUCCESS(200,Messages.ADDPROGRAMMESUCCESS),
    ADDPROGRAMMEFAIL(4001,Messages.ADDPROGRAMMEFAIL),
    DELETEPROGRAMMESUCCESS(200,Messages.DELETEPROGRAMMESUCCESS),
    DELETEPROGRAMMEFAIL(4001,Messages.DELETEPROGRAMMEFAIL),
    UPDATEPROGRAMMESUCCESS(200,Messages.UPDATEPROGRAMMESUCCESS),
    UPDATEPROGRAMMEFAIL(4001,Messages.UPDATEPROGRAMMEFAIL),



    GETEXPERTACTIVITYRECORDALLSUCCESS(200,Messages.GETEXPERTACTIVITYRECORDALLSUCCESS),
    GETEXPERTACTIVITYRECORDALLFAIL(4001,Messages.GETEXPERTACTIVITYRECORDALLFAIL),
    GETEXPERTACTIVITYRECORDSUCCESS(200,Messages.GETEXPERTACTIVITYRECORDSUCCESS),
    GETEXPERTACTIVITYRECORDFAIL(4001,Messages.GETEXPERTACTIVITYRECORDFAIL),
    ADDEXPERTACTIVITYRECORDSUCCESS(200,Messages.ADDEXPERTACTIVITYRECORDSUCCESS),
    ADDEXPERTACTIVITYRECORDFAIL(4001,Messages.ADDEXPERTACTIVITYRECORDFAIL),
    DELETEEXPERTACTIVITYRECORDSUCCESS(200,Messages.DELETEEXPERTACTIVITYRECORDSUCCESS),
    DELETEEXPERTACTIVITYRECORDFAIL(4001,Messages.DELETEEXPERTACTIVITYRECORDFAIL),
    UPDATEEXPERTACTIVITYRECORDSUCCESS(200,Messages.UPDATEEXPERTACTIVITYRECORDSUCCESS),
    UPDATEEXPERTACTIVITYRECORDFAIL(4001,Messages.UPDATEEXPERTACTIVITYRECORDFAIL),



    GETGAMEDETAILSRECORDALLSUCCESS(200,Messages.GETGAMEDETAILSRECORDALLSUCCESS),
    GETGAMEDETAILSRECORDALLFAIL(4001,Messages.GETGAMEDETAILSRECORDALLFAIL),
    GETGAMEDETAILSRECORDSUCCESS(200,Messages.GETGAMEDETAILSRECORDSUCCESS),
    GETGAMEDETAILSRECORDFAIL(4001,Messages.GETGAMEDETAILSRECORDFAIL),
    ADDGAMEDETAILSRECORDSUCCESS(200,Messages.ADDGAMEDETAILSRECORDSUCCESS),
    ADDGAMEDETAILSRECORDFAIL(4001,Messages.ADDGAMEDETAILSRECORDFAIL),
    DELETEGAMEDETAILSRECORDSUCCESS(200,Messages.DELETEGAMEDETAILSRECORDSUCCESS),
    DELETEGAMEDETAILSRECORDFAIL(4001,Messages.DELETEGAMEDETAILSRECORDFAIL),
    UPDATEGAMEDETAILSRECORDSUCCESS(200,Messages.UPDATEGAMEDETAILSRECORDSUCCESS),
    UPDATEGAMEDETAILSRECORDFAIL(4001,Messages.UPDATEGAMEDETAILSRECORDFAIL);



    private Integer code;//状态码
    private String message;
    

    MessageEnum() {
    }

    public Integer getCode() {
        return code;
    }

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
